const mongoose = require('mongoose')
const {name,user,password} = require('../../config')

module.exports = {
    open () {
        return mongoose.connect(name, {
            user:user,
            pass:password,
            poolSize: 10
        })
    },

    close () {
        return mongoose.connect.close()
    }
}